package com.shop.service;

import com.shop.model.Goods;
import com.shop.model.User;
import com.shop.model.common.GoodsShowPage;
import com.shop.model.common.SearchPageGoods;

import java.util.List;
import java.util.Map;

public interface GoodsService {
    void goodsAdd(Map<String, Object> params);

    List<Goods> selectAll();

    Integer searchCount(SearchPageGoods searchPage);

    List<Goods> searchPage(SearchPageGoods searchPage);

    void update(Map map);

    void updateStatus(Integer id, String status);

    List<Goods> showPage(GoodsShowPage goodsShowPage);

    Integer showPageCount(GoodsShowPage goodsShowPage);

    Goods selectById(Integer id);

    Goods findById(int goodid);

    void reduceStock(int goodid, int num);
}
